<?php
namespace Client\Controller;
use Think\Image;

use Think\Page;

use Think\Controller;
class ScenicTicketController extends Controller {
	public function getTicket(){
		if(IS_POST){
			$ticket = D("ScenicTicket");
			$where['scenic_id'] = $_POST['id'];
			$list = $ticket->relation(true)->where($where)->select();
			if($list){
				$json['result'] = "0";
				$json['ticket'] = $list;
			}else{
				$json['result'] = "-1";
			}
			$this->ajaxReturn($json);
		}
	}
	/**
	 * 支付宝回调函数
	 */
	public function notify(){
		vendor("alipay.notify_url");
		$notify = new \Notify();
		$result = $notify->my_notify();
		echo $result;
	}
}